home *** CD-ROM | disk | FTP | other *** search
/ Aminet 2 / Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso / Aminet / util / misc / Fudgit233.lha / Source / src / fudgit.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-16  |  3.7 KB  |  110 lines

  1. /*
  2.  *
  3.  * Fudgit configuration file
  4.  * Edit the following before compiling.
  5.  *
  6.  * The HELPFILE variable should be defined by the makefile.
  7.  *
  8.  * Martin-D. Lacasse
  9.  * May 1992
  10.  *
  11.  */
  12.  
  13. /* where to find the help file: Now defined from the Makefile */
  14. /* #define HELPFILE     "/usr/local/lib/fudgit.help"  */
  15. /* the default pager if not defined in env    */
  16. #define DEFPAGER     "more" 
  17. /* default shell if not defined in env */
  18. #define DEFSHELL      "NewShell"
  19. /* the default plotting program */
  20. #define PLOTTING     ""
  21. /* the default number printing format  */
  22. #define FORMAT       "% 10.8e"
  23. /* the default variable number printing format  */
  24. #define VFORMAT       "%.3g"
  25. /* the default fit iteration number  */
  26. #define ITER         10 
  27. /* The default history name */
  28. #define HISTORY      ".hist_fudgit"
  29. /* The maximum number of memory entries */
  30. #define HISTNUM      52
  31.  
  32. /* Be sure you know what you are doing before editing the following */
  33. #define MAXMACRO     2048      /* max size of a macro >= LINESIZE */
  34. #define MAXARG       16        /* max number of arguments for a macro */
  35. #define MAXPARG      16        /* max number of arguments for plotting prg */
  36. #define MAXDARG      16        /* max number of arguments for _dumplot */
  37.                                /* do not increase MAXLEVEL above supported
  38.                                  number of simultaneous fopen files. */
  39. #define MAXLEVEL     32        /* max nesting of macros and I/O */
  40. #define MAXIF        32        /* max nesting of if's */
  41. #define LINESIZE     1024      /* max size of input line */
  42. #define MAXTOKEN     256       /* max number of columns-tokens */
  43. #define TOKENSIZE    128       /* max size of a token  */
  44. #define MAXPTS       4000      /* default number of data points  */
  45. #define MAXVAR       32        /* max number for show/save/append variable */
  46. #define MAXVARNAME   32        /* max size for variable names  */
  47. #define MAXFUNCARG   32        /* max number of function/proc. arguments  */
  48. #define MAXERR       10        /* error tolerance while reading datafiles  */
  49. #define MATHMAXARG   35        /* max number of arguments for math 
  50.                                    external functions and procedures
  51.                                    edit code.c:extcall() if changed */
  52. #define MATHMAXFUNC  10        /* max number of functions for external
  53.                                   loading from one module */
  54. #define NL           (0)
  55. #define ERRR         (-1)
  56. #define VERRR        (-2)
  57. #define REPORT       (-3)
  58. #define PROMPT_FM    "fudgit> "
  59. #define PROMPT_CM    "cmode> "
  60. #define PROMPT_PM    "pmode> "
  61. #define MAXPROMPT    32
  62. #define PATH_MAXIM   1024      /* max path length supported  */
  63. #define YES 1
  64. #define NO  0
  65. /* If states */
  66. #define FALSE_IF  0
  67. #define TRUE_IF   1
  68. #define DONE_IF   2
  69. #define DUMMY_IF  3
  70. #define FORCED_IF 4
  71. #define NFORCE_IF 5
  72. /* expansion styles */
  73. #define NOTHING   00
  74. #define QUOTES    01
  75. #define PARENTH   02
  76. #define EXPANSION 04
  77. /* Mode styles */
  78. #define FMODE 0
  79. #define CMODE 1
  80. #define PMODE 2
  81. /* Math error check modes */
  82. #define INF_CHK        001
  83. #define NAN_CHK     002
  84. #define EDOM_CHK    004
  85. #define ERANGE_CHK  010
  86. /* Debugging values */
  87. #define DEBUG_EXP     001
  88. #define DEBUG_RAW     002
  89. #define DEBUG_READ    004
  90. #define DEBUG_MATH    010
  91. #define DEBUG_PARSER  020
  92. #define DEBUG_IF      040
  93. /* The filename extension. If defined, FUDGIT will try to open files 
  94.  * ending by ".EXTENSION" first by appending .EXTENSION to filename
  95.  * not ending by this. If not found, it will try with the original
  96.  * name.
  97.  * Ideally, this exception is left for .fudgitrc.
  98.  */
  99. /* #define EXTENSION  ".ft"  */
  100. /* The following are required when defining argument prototypes of
  101.  * loaded routines.
  102.  */
  103. #define PROTO_END        (00)
  104. #define PROTO_VAL        (01)
  105. #define PROTO_VEC        (02)
  106. #define PROTO_PAR        (03)
  107. #define PROTO_MAT        (04)
  108. #define PROTO_STR        (05)
  109.  
  110.